package com.timothy.dao.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("idea_role")
public class IdeaRole extends Model<IdeaRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
	@TableId(value="role_id", type= IdType.AUTO)
	private Integer roleId;
    /**
     * 角色名称
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 备注
     */
	private String remark;
    /**
     * 创建者ID
     */
	@TableField("create_user_id")
	private String createUserId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 状态；1-有效; 0-无效
     */
	private Integer status;


	public Integer getRoleId() {
		return roleId;
	}

	public IdeaRole setRoleId(Integer roleId) {
		this.roleId = roleId;
		return this;
	}

	public String getRoleName() {
		return roleName;
	}

	public IdeaRole setRoleName(String roleName) {
		this.roleName = roleName;
		return this;
	}

	public String getRemark() {
		return remark;
	}

	public IdeaRole setRemark(String remark) {
		this.remark = remark;
		return this;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public IdeaRole setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public IdeaRole setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public IdeaRole setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public static final String ROLE_ID = "role_id";

	public static final String ROLE_NAME = "role_name";

	public static final String REMARK = "remark";

	public static final String CREATE_USER_ID = "create_user_id";

	public static final String CREATE_TIME = "create_time";

	public static final String STATUS = "status";

	@Override
	protected Serializable pkVal() {
		return this.roleId;
	}

	@Override
	public String toString() {
		return "IdeaRole{" +
			"roleId=" + roleId +
			", roleName=" + roleName +
			", remark=" + remark +
			", createUserId=" + createUserId +
			", createTime=" + createTime +
			", status=" + status +
			"}";
	}
}
